package com.altekis.kanbankaze.shared.events;

import java.util.List;

import com.altekis.kanbankaze.shared.UserStory;
import com.google.gwt.event.shared.GwtEvent;

public class UserStoriesLoadedEvent extends GwtEvent<UserStoriesLoadedEventHandler>{
	public static Type<UserStoriesLoadedEventHandler> TYPE = new Type<UserStoriesLoadedEventHandler>();
	public List<UserStory> userStories;
	public UserStoriesLoadedEvent(List<UserStory> userStories) {
		this.userStories = userStories;
	}

	@Override
	public Type<UserStoriesLoadedEventHandler> getAssociatedType() {
	    return TYPE;
	}

	@Override
	protected void dispatch(UserStoriesLoadedEventHandler handler) {
		handler.onUserStoriesLoaded(this);
	}
}
